import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';

import {Observable} from "rxjs/Observable";
import 'rxjs/add/operator/map';


@Injectable()
export class LiveShowSituationProvider {

    constructor(public http: HttpClient) {
    }

    /**
     * 获取团队成员历史业绩
     * @returns {Observable<any>}
     */
    getLiveShowList(id): Observable<any> {

        // return this.http.get(`http://10.248.37.126:8002/team/v1/webcast/list/?groupID=${id}`);
      //  return this.http.get(`/team/v1/webcast/list/?groupID=${id}`,{responseType: "text"});
        return this.http.get(`/livestreaming/v1/team/list/?groupID=${id}`,{responseType: "text"});
    }
}
